﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using TRPOP.Common;
using TRPOP.CMS.Web.UI;


using TRPOP.CMS.Business;
using TRPOP.CMS.Model;
using Newtonsoft.Json;

namespace TRPOP.CMS.Web.Admin
{
    public partial class recycle_bin : BaseAdmin
    {
        #region 当前页面权限验证
        protected override void SubPageInit()
        {
            base.m_SubPagePermission = Plugin.PermissionKeys.PermissionEnum.Content_AllControl;
        }
        #endregion


        #region 页面变量
        protected bool m_IsAdd = true;
        protected int m_intNId = 0;
        protected int m_intId = 0;
        protected string m_strParentName = "";
        protected string m_strNodeName = "";
        protected NodeInfo m_NodeInfo = new NodeInfo();
        protected NodeManage m_NodeManage = new NodeManage();
        protected string m_strAction = "";
        protected int m_intRecordCount = 0;
        #endregion

        #region 页面事件
        protected void Page_Load(object sender, EventArgs e)
        {
            m_intNId = RequestHelper.RequestInt("nodeid");
            m_strAction = RequestHelper.RequestString("ac");
            if (!IsPostBack)
            {
                LoadBase();
                BindData();
            }
        }
        #endregion

        #region 页面方法

        public void LoadBase()
        {
           

        }

        public void BindData()
        {
            if (m_intNId > 0)
            {
               
                    rptrecyclelist.DataSource = (new ContentManage()).GetListByPager(Pager1.CurrentPage, Pager1.PageSize, " and PubStatus=-1  and NodeId=" + m_intNId, " ContentId desc", out m_intRecordCount); ;
                    rptrecyclelist.DataBind();
                    Pager1.RecordCount = m_intRecordCount;
                
            }

        }


        #endregion
    }
}
